package cn.home.sysmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.sysmanagement.mapper.HomeLogMapper;
import cn.home.sysmanagement.domain.HomeLog;
import cn.home.sysmanagement.service.IHomeLogService;

/**
 * 操作日志Service业务层处理
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
@Service
public class HomeLogServiceImpl implements IHomeLogService 
{
    @Autowired
    private HomeLogMapper homeLogMapper;

    /**
     * 查询操作日志
     * 
     * @param id 操作日志主键
     * @return 操作日志
     */
    @Override
    public HomeLog selectHomeLogById(Long id)
    {
        return homeLogMapper.selectHomeLogById(id);
    }

    /**
     * 查询操作日志列表
     * 
     * @param homeLog 操作日志
     * @return 操作日志
     */
    @Override
    public List<HomeLog> selectHomeLogList(HomeLog homeLog)
    {
        return homeLogMapper.selectHomeLogList(homeLog);
    }

    /**
     * 新增操作日志
     * 
     * @param homeLog 操作日志
     * @return 结果
     */
    @Override
    public int insertHomeLog(HomeLog homeLog)
    {
        return homeLogMapper.insertHomeLog(homeLog);
    }

    /**
     * 修改操作日志
     * 
     * @param homeLog 操作日志
     * @return 结果
     */
    @Override
    public int updateHomeLog(HomeLog homeLog)
    {
        return homeLogMapper.updateHomeLog(homeLog);
    }

    /**
     * 批量删除操作日志
     * 
     * @param ids 需要删除的操作日志主键
     * @return 结果
     */
    @Override
    public int deleteHomeLogByIds(Long[] ids)
    {
        return homeLogMapper.deleteHomeLogByIds(ids);
    }

    /**
     * 删除操作日志信息
     * 
     * @param id 操作日志主键
     * @return 结果
     */
    @Override
    public int deleteHomeLogById(Long id)
    {
        return homeLogMapper.deleteHomeLogById(id);
    }
}
